package com.example.runningdemo.designModel.observer;

import lombok.Getter;

/**
 * @program: Running-Demo
 * @description:
 * @author: kangwei
 * @create: 2024-08-12 09:58
 **/
public class ObserverImpl implements Observer {
    @Getter
    private String state;

    @Override
    public void update(String state) {
        this.state = state;
        System.out.println("收到消息，状态值更新为:" + state);
    }
}
